From 577d520006f1f70551d01f4529fffe5647cfaccb Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 6 Nov 2021 03:38:03 +0100 Subject: [PATCH] reftests: Add reftest for last 2 issues Use a label that is long enough to require wrapping and force it into a hardcoded width. Use a sentence where all the words have the same size to not get unwanted wrapping behavior. Also append a 2nd row to check that the first row gets the proper height allocated. Found by Marco Melorio. --- .../listview-with-wrapped-labels.ref.ui | 50 ++++++++++++++++ .../reftests/listview-with-wrapped-labels.ui | 59 +++++++++++++++++++ testsuite/reftests/meson.build | 2 + 3 files changed, 111 insertions(+) create mode 100644 testsuite/reftests/listview-with-wrapped-labels.ref.ui create mode 100644 testsuite/reftests/listview-with-wrapped-labels.ui diff --git a/testsuite/reftests/listview-with-wrapped-labels.ref.ui b/testsuite/reftests/listview-with-wrapped-labels.ref.ui new file mode 100644 index 0000000000..c64d79f0b7 --- /dev/null +++ b/testsuite/reftests/listview-with-wrapped-labels.ref.ui @@ -0,0 +1,50 @@ + + + + 150 + 300 + 0 + + + + + + + + + + + ]]> + + + + + + + + Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo. + Hello World! + + + + + + + + + + + diff --git a/testsuite/reftests/listview-with-wrapped-labels.ui b/testsuite/reftests/listview-with-wrapped-labels.ui new file mode 100644 index 0000000000..cbbea66335 --- /dev/null +++ b/testsuite/reftests/listview-with-wrapped-labels.ui @@ -0,0 +1,59 @@ + + + + 150 + 300 + 0 + + + + + + + + + + + ]]> + + + + + + + + Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo. + Hello World! + + + + + + + + + + + diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build index 692a427438..7917c1d388 100644 --- a/testsuite/reftests/meson.build +++ b/testsuite/reftests/meson.build @@ -385,6 +385,8 @@ testdata = [ 'link-coloring.css', 'link-coloring.ref.ui', 'link-coloring.ui', + 'listview-with-wrapped-labels.ref.ui', + 'listview-with-wrapped-labels.ui', 'marble.xpm', 'messagedialog-secondarytext.ui', 'messagedialog-secondarytext.ref.ui', -- 2.30.2